package com.jk.controller;


import com.jk.bean.Wb;
import com.jk.service.AddWbService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("add")
public class AddWbController {
    @Resource
    private AddWbService addWbService;


    @ResponseBody
    @RequestMapping("addwb")
    public String addwb(Wb wb) {
        addWbService.addwb(wb);
        return  "1";
    }

    @ResponseBody
    @RequestMapping("selectPl")
    public Integer  selectPl(Integer authorid){
        Integer count = addWbService.selectPl(authorid);
        return  count;
    }
}
